package Code.IfDemo;

//红黄绿灯
public class Test3 {
    public static void main(String[] args) {
        //定义变量
        boolean isLightRed = false;
        boolean isLightYellow = false;
        boolean isLightGreen = true;

        if (isLightRed) {
            System.out.println("stop");
        }
        if (isLightYellow) {
            System.out.println("slow");
        }
        if (isLightGreen) {
            System.out.println("go");
        }
    }
}
